home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
New Masters of Flash
/
New Masters of Flash.iso
/
pc
/
MOVIES
/
14.dir
/
00061_Text_text05.txt
< prev
next >
Wrap
Text File
|
2000-10-01
|
458b
|
11 lines
Next, create a new keyframe in the timeline of your movie and label it Move_x. Add this script to the keyframe:
Then I modified the code in the Move_all keyframe so that it changes the properties of the parent clip denoted by the variable target.
x = getProperty(target,_x);
x_speed=(1-damp)*x_speedΓÇö(xΓÇöx_def)*stiff + brown*(random(20)-10)/10;
x = x + x_speed;
setProperty(target,_x)=x;
Note that only the first and last lines have changed.